export interface BaseResponse {
    code: number;
    msg: string;
}
interface GetValidateResponse {
    data: {
        svg: string
    }
}
// 请求验证码
export type GetValidateResponseData = GetValidateResponse & BaseResponse;
export interface LoginData {
    id: number;
    username: string;
    token: string;
}
// 登录返回的类型
export type LoginResponseData = {
    data: LoginData
} & BaseResponse






// 注册
export interface RegisterProps {
    username: string;
    password: string;
    repassword: string;
    code: string;
}

// 登录
export interface LoginProps {
    username: string;
    password: string;
}
